package com.tza.web.t_net.client.sceens;

import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.types.SelectionStyle;
import com.smartgwt.client.widgets.tree.TreeGrid;

public class MenuTree extends TreeGrid
{

   public MenuTree(DataSource dataSource)
   {

      setShowHeader(false);
      setLeaveScrollbarGap(false);
      setAnimateFolders(true);
      setCanAcceptDroppedRecords(true);
      setCanReparentNodes(false);
      setSelectionType(SelectionStyle.SINGLE);
      if (dataSource != null) setDataSource(dataSource);
   }

}
